<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/app/customerPortal/locationUpdate.js', CClientScript::POS_BEGIN); ?>
<?php
if (isset($model))
    Yii::app()->clientScript->registerScript('list', <<<DOCHERE

   var custno= '$model->custno';
   var locno='$model->locno';
DOCHERE
        , CClientScript::POS_BEGIN);
else {
    Yii::app()->clientScript->registerScript('list', <<<DOCHERE

   var custno= '$model->custno';
   var locno=-1;
DOCHERE
        , CClientScript::POS_BEGIN);

}
?>



<div id="left-col">
    <?php $this->renderPartial('_side', array(
    'location' => $model,
    'customer' => $customer
));?>


</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div class="inside">
                <?php $this->renderPartial('_view', array(
                'location' => $model,
            ));?>
                <?php $this->renderPartial('_tab', array(
                'model' => $model,
            ));?>
                <br/>
                <?php $this->renderPartial('_form', array(
                'model' => $model,
            ));?>


            </div>
            <!-- inside -->
        </div>
        <!-- container -->
    </div>
    <!-- wrap -->
    <?php $this->renderPartial('application.views.copyright'); ?>
</div> <!-- left-col -->